"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path,include
from mng import views

urlpatterns = [
    re_path("login", views.loging.as_view()),
    re_path("index", views.index, name="index"),
    re_path("logout.html$", views.logout),
    re_path("register", views.register, name="register"),
    re_path("user_ajax", views.user_ajax),
    re_path("classes", views.handle_class),
    re_path('^students', views.handle_student),
    re_path('^add_teacher', views.add_teacher),
    re_path('^edit_teacher', views.edit_teacher),
    re_path('^edit1_teacher', views.edit1_teacher),
    re_path('^get_teacher', views.get_teacher),
    re_path('^test', views.test),
]
